Fluent Assertions Documentation
FluentAssertions.Collections Namespace / GenericCollectionAssertions<TCollection,T,TAssertions> Class / ContainInOrder Method / ContainInOrder(T[]) Method
An IEnumerable with the expected elements.
In This Topic
    ContainInOrder(T[]) Method
    In This Topic
    Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. using their System.Object.Equals(System.Object) implementation.
    Syntax
    public AndConstraint<TAssertions> ContainInOrder( 
       params T[] expected
    )

    Parameters

    expected
    An IEnumerable with the expected elements.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also